package com.zhz.service;

import com.zhz.domain.SysMenu;
import com.zhz.domain.SysRolePrivilege;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhz.model.RolePrivilegesParam;

import java.util.List;

/**
 * @author ：zhz
 * @date ：Created in 2020/12/20
 * @version: V1.0
 * @slogan: 天下风云出我辈，一入代码岁月催
 * @description: 
 **/
public interface SysRolePrivilegeService extends IService<SysRolePrivilege>{

    /**
     * 查询角色的权限
     * @param roleId
     * @return
     */
    List<SysMenu> findSysMenuAndPrivileges(Long roleId);

    /**
     * 给角色赋予权限
     * @param rolePrivilegesParam
     * @return
     */
    boolean grantPrivileges(RolePrivilegesParam rolePrivilegesParam);
}
